ceph: send pgid in command strings of pg tell

It's also passed as part of the message, but to avoid having to
rev MCommand, just pass it in cmd there as well

Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
Dan Mick 2013-05-16 16:10:13 -07:00
parent 3ff7c364d7
commit d7c6885919

View File

@ -973,7 +973,8 @@ def json_command(prefix=None, argdict=None, inbuf=''):
try:
if cmddict['prefix'] == 'pg' and cmddict.has_key('pgid'):
pgid = cmddict.pop('pgid')
# leave it in cmddict for the OSD to use too
pgid = cmddict['pgid']
ret, outbuf, outs = \
cluster.pg_command(pgid, json.dumps(cmddict), inbuf)
elif cmddict['prefix'] == 'tell' and cmddict.has_key('target'):