mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
The replication mode that is currently support is fullsync, not memsync.
Correct this and print a warning if different replication mode is configured. MFC after: 1 week
This commit is contained in:
parent
97fd3ac63f
commit
ac6518673e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220573
@ -169,7 +169,7 @@ yy_config_parse(const char *config, bool exitonerror)
|
||||
lineno = 0;
|
||||
|
||||
depth0_timeout = HAST_TIMEOUT;
|
||||
depth0_replication = HAST_REPLICATION_MEMSYNC;
|
||||
depth0_replication = HAST_REPLICATION_FULLSYNC;
|
||||
depth0_checksum = HAST_CHECKSUM_NONE;
|
||||
depth0_compression = HAST_COMPRESSION_HOLE;
|
||||
strlcpy(depth0_control, HAST_CONTROL, sizeof(depth0_control));
|
||||
@ -228,6 +228,13 @@ yy_config_parse(const char *config, bool exitonerror)
|
||||
*/
|
||||
curres->hr_replication = depth0_replication;
|
||||
}
|
||||
if (curres->hr_replication == HAST_REPLICATION_MEMSYNC ||
|
||||
curres->hr_replication == HAST_REPLICATION_ASYNC) {
|
||||
pjdlog_warning("Replication mode \"%s\" is not implemented, falling back to \"%s\".",
|
||||
curres->hr_replication == HAST_REPLICATION_MEMSYNC ?
|
||||
"memsync" : "async", "fullsync");
|
||||
curres->hr_replication = HAST_REPLICATION_FULLSYNC;
|
||||
}
|
||||
if (curres->hr_checksum == -1) {
|
||||
/*
|
||||
* Checksum is not set at resource-level.
|
||||
|
Loading…
Reference in New Issue
Block a user