cls/rgw: init op in rgw_cls_obj_complete_op ctor

Turned up by the encoding/decoding unit tests.

Signed-off-by: Sage Weil <sage@inktank.com>
mds: fix rename_rollback::drec cctor

Signed-off-by: Sage Weil <sage@inktank.com>
mds: make rename_rollback::drec not assert on unexpected d_type

Signed-off-by: Sage Weil <sage@inktank.com>
test/encoding/import-genearted: fix

Dest dir was wrong, cp shortcut check was wrong.

Signed-off-by: Sage Weil <sage@inktank.com>
msg/Message: use old footer for encoded message dump

This avoids the need for a conditional decoding check on ceph-dencoder,
and makes it match up with what encode_message() is doing.  The new(ish)
fields in the footer (the signature) is not useful for the object
corpus.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-rest-api: make main program be "shell" around WSGI guts

Move WSGI guts to pybind/ceph_rest_api.py for importability
into WSGI server frameworks.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
osd/OSDmap: fix OSDMap::Incremental::dump() for new pool names

The name is always present when pools are created, but not when they are
modified.  Also, a name may be present with a new_pools entry if the pool
is just renamed.  Separate it out completely in the dump.

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
ceph-object-corpus: new objects for almost-dumpling

Signed-off-by: Sage Weil <sage@inktank.com>
mon: add encoding tests for MonitorDBStore data types

Signed-off-by: Sage Weil <sage@inktank.com>
osd: add encoding tests for PushOp, PullOp, PushReplyOp

Signed-off-by: Sage Weil <sage@inktank.com>
mds: add encoding test for inode_backtrace_t; note incompat in corpus

Signed-off-by: Sage Weil <sage@inktank.com>
mon: add encoding tests for newish MMonSync, MMonScrub

Signed-off-by: Sage Weil <sage@inktank.com>
osd: reenable pg_query_t test

This was disabled back in 4ce17cca2e924b2ef9565d5c345cd602bcc6dd98; not
sure why.

Signed-off-by: Sage Weil <sage@inktank.com>
doc/dev: add corpus.rst

Structure of the corpus dir, how to add to it.

Signed-off-by: Sage Weil <sage@inktank.com>
mon: fix recent paxos sync from 0 when first_committed == 1

This is okay; allow it.

Signed-off-by: Sage Weil <sage@inktank.com>
mon: fix off-by-one: no need to reapply previous last_committed after sync

The old last_committed is already committed; don't reapply. This also fixes
the case where lc was 0 (i.e., we did get_cookie_recent from the beginning
of time).

Signed-off-by: Sage Weil <sage@inktank.com>
mon: fix sync_start doc

Signed-off-by: Sage Weil <sage@inktank.com>
cls_refcount: add type tests

Signed-off-by: Sage Weil <sage@inktank.com>
cls_rgw: add missing type tests

Signed-off-by: Sage Weil <sage@inktank.com>
mon: factor out stashing latest monmap

Signed-off-by: Sage Weil <sage@inktank.com>