Merge "Update config value when the corresponding DeviceConfig prop changes." into rvc-dev am: d9cabfca63 am: 47efe50785 am: a6a887df92

Change-Id: I0a5c331e69555343c1641dd1026392be166582bc
This commit is contained in:
Sudheer Shanka
2020-04-22 19:21:33 +00:00
committed by Automerger Merge Worker

View File

@@ -131,6 +131,10 @@ class BlobStoreConfig {
LEASE_ACQUISITION_WAIT_DURATION_MS = properties.getLong(key,
DEFAULT_LEASE_ACQUISITION_WAIT_DURATION_MS);
break;
case KEY_COMMIT_COOL_OFF_DURATION_MS:
COMMIT_COOL_OFF_DURATION_MS = properties.getLong(key,
DEFAULT_COMMIT_COOL_OFF_DURATION_MS);
break;
default:
Slog.wtf(TAG, "Unknown key in device config properties: " + key);
}
@@ -149,6 +153,9 @@ class BlobStoreConfig {
fout.println(String.format(dumpFormat, KEY_LEASE_ACQUISITION_WAIT_DURATION_MS,
TimeUtils.formatDuration(LEASE_ACQUISITION_WAIT_DURATION_MS),
TimeUtils.formatDuration(DEFAULT_LEASE_ACQUISITION_WAIT_DURATION_MS)));
fout.println(String.format(dumpFormat, KEY_COMMIT_COOL_OFF_DURATION_MS,
TimeUtils.formatDuration(COMMIT_COOL_OFF_DURATION_MS),
TimeUtils.formatDuration(DEFAULT_COMMIT_COOL_OFF_DURATION_MS)));
}
}