* Is this instance the coordinator? * * Coordinator status is determined from the coordinatorIdEnvVar environment variable. * The coordinator handles finalization and cleanup of shard files. * Checks dynamically to allow coordinator to be set after construction. * * @returns true i
()
| 228 | * @returns true if this instance is the coordinator, false otherwise |
| 229 | */ |
| 230 | isCoordinator(): boolean { |
| 231 | return ShardedWal.isCoordinatorProcess(this.#coordinatorIdEnvVar, this.#id); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Asserts that the WAL is in 'active' state. |
no test coverage detected