mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
journal: remove SetNamespace setter function
The SetNamespace setter function was called only once, immediately after the creation of a volume journal object in cephfs only. Remove this function so that it is no longer implied that this field can be mutated after the journal is created. In it's place, use an extended "constructor" NewCSIVolumeJournalWithNamespace that takes a namespace value at create-time only. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
9394ac887e
commit
f091374ba9
@ -110,11 +110,8 @@ func (fs *Driver) Run(conf *util.Config, cachePersister util.CachePersister) {
|
||||
CSIInstanceID = conf.InstanceID
|
||||
}
|
||||
// Create an instance of the volume journal
|
||||
volJournal = journal.NewCSIVolumeJournal(CSIInstanceID)
|
||||
volJournal = journal.NewCSIVolumeJournalWithNamespace(CSIInstanceID, radosNamespace)
|
||||
|
||||
// Update namespace for storing keys into a specific namespace on RADOS, in the CephFS
|
||||
// metadata pool
|
||||
volJournal.SetNamespace(radosNamespace)
|
||||
// Initialize default library driver
|
||||
|
||||
fs.cd = csicommon.NewCSIDriver(conf.DriverName, util.DriverVersion, conf.NodeID)
|
||||
|
Reference in New Issue
Block a user