]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/OpenFileTable: match MAX_ITEMS_PER_OBJ to osd_deep_scrub_large_omap_object_key_th...
authorVikhyat Umrao <vikhyat@redhat.com>
Tue, 29 Oct 2019 19:59:56 +0000 (12:59 -0700)
committerVikhyat Umrao <vikhyat@redhat.com>
Fri, 17 Jan 2020 15:53:02 +0000 (07:53 -0800)
Fixes: https://tracker.ceph.com/issues/42515
Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
src/mds/OpenFileTable.h

index 47a0fa0eb68f40be36b4ad6c097d8b02b25f0071..70d4c09b42d5b66f99d887c21fa7f0ecb9076afa 100644 (file)
@@ -71,8 +71,8 @@ protected:
   friend class C_IO_OFT_Journal;
   friend class C_OFT_OpenInoFinish;
 
-  static const unsigned MAX_ITEMS_PER_OBJ = 1024 * 1024;
-  static const unsigned MAX_OBJECTS = 1024; // billion items at most
+  uint64_t MAX_ITEMS_PER_OBJ = g_conf().get_val<uint64_t>("osd_deep_scrub_large_omap_object_key_threshold");
+  static const unsigned MAX_OBJECTS = 1024; // (1024 * osd_deep_scrub_large_omap_object_key_threshold) items at most
 
   static const int DIRTY_NEW   = -1;
   static const int DIRTY_UNDEF = -2;