DefragmenterTask: Don't wait task to complete before shutdown 86/76486/5
authorDave Rigby <daver@couchbase.com>
Fri, 7 Apr 2017 17:16:56 +0000 (18:16 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 9 May 2017 09:52:41 +0000 (09:52 +0000)
Fix a bug in the constructor arguments which would mean that the
DefragmenterTask::completeBeforeShutdown was incorrectly defaulted (to
true).

Change-Id: I2e994d02f231ef5e19dddb9b1e8543329da8e4b7
Reviewed-on: http://review.couchbase.org/76486
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
src/defragmenter.cc

index 33f7d35..0c9f9b1 100644 (file)
@@ -25,7 +25,7 @@
 
 DefragmenterTask::DefragmenterTask(EventuallyPersistentEngine* e,
                                    EPStats& stats_)
-  : GlobalTask(e, TaskId::DefragmenterTask, false),
+  : GlobalTask(e, TaskId::DefragmenterTask, 0, false),
     stats(stats_),
     epstore_position(engine->getKVBucket()->startPosition()),
     visitor(NULL) {