Skip to content

Commit b4980df

Browse files
authored
fix: update watch_ctx.revision to avoid multiple resyncs (#12021)
1 parent 53e5b02 commit b4980df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apisix/core/config_etcd.lua

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ local function do_run_watch(premature)
266266
if rev < watch_ctx.rev then
267267
log.error("received smaller revision, rev=", rev, ", watch_ctx.rev=",
268268
watch_ctx.rev,". etcd may be restarted. resyncing....")
269+
watch_ctx.rev = rev
269270
produce_res(nil, "restarted")
270271
cancel_watch(http_cli)
271272
break

0 commit comments

Comments
 (0)