This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new ae6e787bf Use persistent node name in a new header
ae6e787bf is described below
commit ae6e787bf18df8ee4d68a3f6200a06b9a0d69d34
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Mon Aug 5 10:38:44 2024 -0400
Use persistent node name in a new header
When updating various places to use persistent node names, we forgot
probably
one of the most important one: the epoch list in the header.
Continuation of: #5138
---
src/couch/src/couch_bt_engine_header.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch/src/couch_bt_engine_header.erl
b/src/couch/src/couch_bt_engine_header.erl
index 61202cd0d..642ae73ce 100644
--- a/src/couch/src/couch_bt_engine_header.erl
+++ b/src/couch/src/couch_bt_engine_header.erl
@@ -79,7 +79,7 @@
new() ->
#db_header{
uuid = couch_uuids:random(),
- epochs = [{node(), 0}]
+ epochs = [{config:node_name(), 0}]
}.
from(Header0) ->