You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/08/05 15:18:22 UTC
(couchdb) branch main updated: Use persistent node name in a new header
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 <va...@gmail.com>
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) ->