leak in initRsOplogBackgroundThread

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.0.0
    • Component/s: WiredTiger
    • None
    • Fully Compatible
    • ALL
    • Hide

      Build with address sanitizer. Run replicaset tests (e.g., dbtest) with storageEngine=wiredTiger

      Show
      Build with address sanitizer. Run replicaset tests (e.g., dbtest) with storageEngine=wiredTiger
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      AddressSanitizer detects a leak of the background job to manage oplogs in replicasets

      Fix:

      diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store_mongod.cpp
      @@ -59,7 +59,7 @@ namespace mongo {
               class WiredTigerRecordStoreThread : public BackgroundJob {
               public:
                   WiredTigerRecordStoreThread(const NamespaceString& ns)
      -                : _ns(ns) {
      +                : BackgroundJob(true), _ns(ns) {
                       _name = std::string("WiredTigerRecordStoreThread for ") + _ns.toString();
                   }
      

            Assignee:
            Geert Bosch
            Reporter:
            Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: