mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-28 11:07:09 -05:00
storage-users: name the queue group the uploads command must stay out of
The driver no longer consumes postprocessing events: the upload coordinator does, in the "dcfs" group, and the driver only consumes DeleteRevision in "dcfs-revisions". The command still disables async uploads so it does not join that group. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
7ddda68ec8
commit
74b6eddf8d
1 file changed
+6
-4
@@ -96,10 +96,12 @@ func ListUploadSessions(cfg *config.Config) *cobra.Command {
|
||||
// We need to init the posix driver with 'scanfs' disabled
|
||||
posixDrivers := revaconfig.Posix(cfg, false, false)
|
||||
// Disable async file uploads: this command only lists sessions and publishes
|
||||
// events, but with async uploads enabled the driver would join the "dcfs"
|
||||
// JetStream queue group. Events routed to this short-lived CLI member are
|
||||
// auto-acked by the nats client and lost when the process exits, so the
|
||||
// clean/restart/resume events published below would never reach the daemon.
|
||||
// events, but with async uploads enabled the driver would join the
|
||||
// "dcfs-revisions" JetStream queue group. Events routed to this short-lived
|
||||
// CLI member are auto-acked by the nats client and lost when the process
|
||||
// exits, so the daemon would miss them. The coordinator built below does not
|
||||
// subscribe to postprocessing events, so the clean/restart/resume events
|
||||
// published below reach the daemon.
|
||||
posixDrivers["asyncfileuploads"] = false
|
||||
drivers["posix"] = posixDrivers
|
||||
// Also posix refuses to start without an events stream
|
||||
|
||||
Reference in new issue
Block a user