OSD::do_command: unlock pg only if we had it

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2012-07-02 09:51:37 -07:00
parent 841451f2fe
commit 2472034c4f

View 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();
}
}