bnThread: dummy commit to make CI happy
This commit is contained in:
parent
490caa967b
commit
935d41b1f7
|
@ -122,8 +122,7 @@ static void bnProcessTimer(void *handle, void *tmrId) {
|
||||||
void bnStartTimer(int32_t mseconds) {
|
void bnStartTimer(int32_t mseconds) {
|
||||||
if (tsBnThread.stop) return;
|
if (tsBnThread.stop) return;
|
||||||
|
|
||||||
bool updateSoon = (mseconds != -1);
|
if (mseconds != -1) {
|
||||||
if (updateSoon) {
|
|
||||||
mTrace("balance function will be called after %d ms", mseconds);
|
mTrace("balance function will be called after %d ms", mseconds);
|
||||||
taosTmrReset(bnProcessTimer, mseconds, (void *)(int64_t)mseconds, tsMnodeTmr, &tsBnThread.timer);
|
taosTmrReset(bnProcessTimer, mseconds, (void *)(int64_t)mseconds, tsMnodeTmr, &tsBnThread.timer);
|
||||||
} else {
|
} else {
|
||||||
|
@ -132,5 +131,5 @@ void bnStartTimer(int32_t mseconds) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void bnNotify() {
|
void bnNotify() {
|
||||||
bnStartTimer(500);
|
bnStartTimer(10);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue