FastRestore:Fix undefined ref to vtable error

This commit is contained in:
Meng Xu 2020-02-27 21:18:01 -08:00
parent f4cd0ef74f
commit 6018b64d73
3 changed files with 8 additions and 16 deletions

View File

@ -214,15 +214,11 @@ public:
vbState = newState;
}
~ApplierVersionBatchState() = default;
virtual ~ApplierVersionBatchState() = default;
void operator = (int newState) {
vbState = newState;
}
virtual void operator=(int newState) { vbState = newState; }
int get() {
return RoleVersionBatchState::get();
}
virtual int get() { return vbState; }
};
struct ApplierBatchData : public ReferenceCounted<ApplierBatchData> {

View File

@ -54,15 +54,11 @@ public:
vbState = newState;
}
~LoaderVersionBatchState() = default;
virtual ~LoaderVersionBatchState() = default;
void operator = (int newState) {
vbState = newState;
}
virtual void operator=(int newState) { vbState = newState; }
int get() {
return RoleVersionBatchState::get();
}
virtual int get() { return vbState; }
// static std::string getVersionBatchState(int vbState) {
// switch(vbSTate) {

View File

@ -154,8 +154,8 @@ public:
virtual void initVersionBatch(int batchIndex) = 0;
virtual void resetPerRestoreRequest() = 0;
virtual int getVersionBatchState(int batchIndex);
virtual void setVersionBatchState(int batchIndex, int vbState);
virtual int getVersionBatchState(int batchIndex) = 0;
virtual void setVersionBatchState(int batchIndex, int vbState) = 0;
void clearInterfaces() {
loadersInterf.clear();