feat(xen-api/barrier): add ms timestamp in barrier tags

Enable identification of stale entries.
This commit is contained in:
Julien Fontanet
2020-01-13 12:15:02 +01:00
parent e2fa0aface
commit 2a59feddb6

View File

@@ -506,7 +506,13 @@ export class Xapi extends EventEmitter {
const { promise, resolve } = defer()
eventWatchers[key] = resolve
await this._sessionCall('pool.add_to_other_config', [poolRef, key, ''])
await this._sessionCall('pool.add_to_other_config', [
poolRef,
key,
// use ms timestamp as values to enable identification of stale entries
String(Date.now()),
])
await promise