]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: set client incarnation for Objecter instance
authorSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 01:22:30 +0000 (17:22 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:40 +0000 (22:09 -0800)
commit774125c7a87b34a3bc80b033a4ddbdc5630ca42d
treec0ae76799af37162645b32b1916246c220cdbbfb
parent0dd1e07194996344dd8f744d2026cca4284b475d
osd: set client incarnation for Objecter instance

Each ceph-osd process's Objecter instance has a sequence
of tid's that start at 1.  To ensure these are unique
across all time, set the client incarnation to the
OSDMap epoch in which we booted.

Note that the MDS does something similar (except the
incarnation is actually the restart count for the MDS
rank, since the MDSMap tracks that explicitly).

Backport: emperor
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc