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:
Sam Lang 2013-02-26 08:48:40 -06:00
parent fb07745c75
commit 62d12d8ae9

View File

@ -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);
}