]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: let set_filer_flags clear flags, toos
authorSage Weil <sage@newdream.net>
Thu, 2 Feb 2012 05:11:47 +0000 (21:11 -0800)
committerSage Weil <sage@newdream.net>
Thu, 2 Feb 2012 17:02:17 +0000 (09:02 -0800)
ceph-syn does this...

Signed-off-by: Sage Weil <sage@newdream.net>
src/client/Client.cc

index dcf522e13d2a0c7c299077b509993d609d00d83e..e01b3937de4ade6b6a419db7ba608653c5b697af 100644 (file)
@@ -6908,7 +6908,8 @@ bool Client::ms_get_authorizer(int dest_type, AuthAuthorizer **authorizer, bool
 void Client::set_filer_flags(int flags)
 {
   Mutex::Locker l(client_lock);
-  assert(flags == CEPH_OSD_FLAG_LOCALIZE_READS);
+  assert(flags == 0 ||
+        flags == CEPH_OSD_FLAG_LOCALIZE_READS);
   objecter->add_global_op_flags(flags);
 }