]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD::do_command: unlock pg only if we had it
authorSamuel Just <sam.just@inktank.com>
Mon, 2 Jul 2012 16:51:37 +0000 (09:51 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 2 Jul 2012 16:51:37 +0000 (09:51 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc

index 3cba75641d0828663a2910f227b3ae3e402c00ba..3bd3fc03967ba90a67ede2768bb6dab0d439436e 100644 (file)
@@ -2397,8 +2397,8 @@ void OSD::do_command(Connection *con, tid_t tid, vector<string>& cmd, bufferlist
       } else {
        cmd.erase(cmd.begin(), cmd.begin() + 2);
        r = pg->do_command(cmd, ss, data, odata);
+       pg->unlock();
       }
-      pg->unlock();
     }
   }