Skip to content

Commit

Permalink
FileStore: do not check dbobjectmap without option set
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
  • Loading branch information
Samuel Just authored and liewegas committed Apr 5, 2012
1 parent 41f84fa commit e0c4db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/FileStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ int FileStore::mount()

{
stringstream err2;
if (!object_map->check(err2)) {
if (g_conf->filestore_debug_omap_check && !object_map->check(err2)) {
derr << err2.str() << dendl;;
ret = -EINVAL;
goto close_current_fd;
Expand Down Expand Up @@ -3398,7 +3398,7 @@ void FileStore::sync_entry()
assert(0);
}
stringstream errstream;
if (!object_map->check(errstream)) {
if (g_conf->filestore_debug_omap_check && !object_map->check(errstream)) {
derr << errstream.str() << dendl;
assert(0);
}
Expand Down

0 comments on commit e0c4db9

Please sign in to comment.