]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: add option to disable filestore sharded object check
authorSamuel Just <sam.just@inktank.com>
Thu, 5 Dec 2013 21:57:44 +0000 (13:57 -0800)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Jan 2014 22:39:14 +0000 (14:39 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/common/config_opts.h
src/os/FileStore.cc

index fd3a31409beb10288b75281a21b9be467691fb14..ad412e43c1472c70069417c0b2bbe34667a035e5 100644 (file)
@@ -543,6 +543,8 @@ OPTION(osd_objectstore, OPT_STR, "filestore")  // ObjectStore backend type
 // Set to true for testing.  Users should NOT set this.
 OPTION(osd_debug_override_acting_compat, OPT_BOOL, false)
 
+OPTION(filestore_debug_disable_sharded_check, OPT_BOOL, false)
+
 /// filestore wb throttle limits
 OPTION(filestore_wbthrottle_enable, OPT_BOOL, true)
 OPTION(filestore_wbthrottle_btrfs_bytes_start_flusher, OPT_U64, 41943040)
index 2a79e8bc350d21a6255c4bec005badf1f0dfde94..64428f15807fa357aa44d95fddc5c167a8fe98f3 100644 (file)
@@ -1010,7 +1010,8 @@ void FileStore::set_allow_sharded_objects()
 
 bool FileStore::get_allow_sharded_objects()
 {
-  return superblock.compat_features.incompat.contains(CEPH_FS_FEATURE_INCOMPAT_SHARDS);
+  return g_conf->filestore_debug_disable_sharded_check ||
+    superblock.compat_features.incompat.contains(CEPH_FS_FEATURE_INCOMPAT_SHARDS);
 }
 
 int FileStore::update_version_stamp()