mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
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:
parent
3ff7c364d7
commit
d7c6885919
3
src/ceph
3
src/ceph
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user