diff options
author | Michal Jarzabek <stiopa@gmail.com> | 2016-10-02 11:30:20 +0200 |
---|---|---|
committer | Michal Jarzabek <stiopa@gmail.com> | 2016-10-02 11:30:20 +0200 |
commit | 677c8f6aadd88349432a4bb86276ee59feacda19 (patch) | |
tree | 157d5eccee790462bab9ff1685abe44cb0ce2405 /src/mds/SessionMap.h | |
parent | Merge pull request #11285 from liewegas/wip-mgr-rpm (diff) | |
download | ceph-677c8f6aadd88349432a4bb86276ee59feacda19.tar.xz ceph-677c8f6aadd88349432a4bb86276ee59feacda19.zip |
mds/SessionMap.h: change statement to assertion
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
Diffstat (limited to 'src/mds/SessionMap.h')
-rw-r--r-- | src/mds/SessionMap.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index ec28e4483bf..d85731c556b 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -104,9 +104,7 @@ public: void push_pv(version_t pv) { - if (!projected.empty()) { - assert(projected.back() != pv); - } + assert(projected.empty() || projected.back() != pv); projected.push_back(pv); } |