]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
* only auth_pin wrlocks if auth
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 13 Jun 2007 19:01:26 +0000 (19:01 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 13 Jun 2007 19:01:26 +0000 (19:01 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1416 29311d96-e01e-0410-9327-a35deaab8ce9

branches/sage/cephmds2/mds/Locker.cc

index b847a4f4a4eca05a668356d42018b913867c6bc0..1a37278141e3443a64e00bd5eaa32cb50b70d05a 100644 (file)
@@ -137,7 +137,8 @@ bool Locker::acquire_locks(MDRequest *mdr,
   // make list of items to authpin
   set<SimpleLock*> mustpin = xlocks;
   for (set<SimpleLock*>::iterator p = wrlocks.begin(); p != wrlocks.end(); ++p)
-    mustpin.insert(*p);
+    if ((*p)->get_parent()->is_auth())
+      mustpin.insert(*p);
   
   // can i auth pin them all now?
   for (set<SimpleLock*>::iterator p = mustpin.begin();