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