Remove now unused m_isDumping flag from RdbDump

This commit is contained in:
Ai Lin Chia
2017-04-03 17:31:34 +02:00
parent e7f457f752
commit 990373e4b5
2 changed files with 0 additions and 15 deletions

@ -8,8 +8,6 @@
RdbDump::RdbDump() {
m_isDumping = false;
// Coverity
m_tree = NULL;
m_buckets = NULL;
@ -78,7 +76,6 @@ bool RdbDump::set(collnum_t collnum,
m_isSuspended = false;
m_ks = keySize;
m_isDumping = false;
m_buf = NULL;
m_verifyBuf = NULL;
m_maxBufSize = maxBufSize;
@ -125,9 +122,6 @@ bool RdbDump::set(collnum_t collnum,
return true;
}
// we're now considered to be in dumping state
m_isDumping = true;
// . if no tree was provided to dump it must be RdbMerge calling us
// . he'll want to call dumpList() on his own
if (!m_tree && !m_buckets) {
@ -175,7 +169,6 @@ void RdbDump::reset ( ) {
void RdbDump::doneDumping() {
int32_t saved = g_errno;
m_isDumping = false;
// print stats
log(LOG_INFO,
"db: Dumped %" PRId32" positive and %" PRId32" negative recs. "
@ -408,9 +401,6 @@ bool RdbDump::dumpList(RdbList *list, bool recall) {
m_hacked = false;
m_hacked12 = false;
// we're now in dump mode again
m_isDumping = true;
if (g_conf.m_verifyDumpedLists) {
if(g_jobScheduler.submit(&checkList,&checkedList,this,thread_type_verify_data,m_niceness)) {
logTrace(g_conf.m_logTraceRdbDump, "END. Submitted checkList job.");
@ -827,7 +817,6 @@ void RdbDump::continueDumping() {
// go back now if we were NOT dumping a tree
if (!(m_tree || m_buckets)) {
m_isDumping = false;
m_callback(m_state);
return;
}

@ -43,8 +43,6 @@ public:
char keySize,
rdbid_t rdbId);
bool isDumping() const { return m_isDumping; }
void setSuspended() { m_isSuspended = true; }
bool dumpList(RdbList *list) {
@ -72,8 +70,6 @@ private:
bool doneDumpingList();
void continueDumping();
bool m_isDumping; // true if we're in the middle of dumping
RdbTree *m_tree;
RdbBuckets *m_buckets;
RdbMap *m_map;