MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetIdx

Function GetIdx

phxqueue/store/syncctrl.cpp:116–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static inline void GetIdx(const int nsub, const int sub_id, const int queue_id, size_t &idx) {
117 idx = queue_id * nsub + sub_id - 1;
118}
119
120comm::RetCode SyncCtrl::AdjustNextCursorID(const int sub_id, const int queue_id,
121 uint64_t &prev_cursor_id, uint64_t &next_cursor_id) {

Callers 5

AdjustNextCursorIDMethod · 0.85
UpdateCursorIDMethod · 0.85
GetCursorIDMethod · 0.85
ClearCursorIDMethod · 0.85
FlushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected