mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
message/mds: Fix client reconnect decode
Flip the conditional so that snap realms are decoded, otherwise this results in an assertion failure of the mds when a client attempts to reconnect. Signed-off-by: Sam Lang <sam.lang@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
parent
fb07745c75
commit
62d12d8ae9
@ -94,7 +94,7 @@ public:
|
||||
for (map<inodeno_t,old_cap_reconnect_t>::iterator q = ocaps.begin(); q != ocaps.end(); q++)
|
||||
caps[q->first] = q->second;
|
||||
}
|
||||
while (p.end()) {
|
||||
while (!p.end()) {
|
||||
realms.push_back(ceph_mds_snaprealm_reconnect());
|
||||
::decode(realms.back(), p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user