From d7e8076a809018ca5aadee59bfaa3a4034066dc9 Mon Sep 17 00:00:00 2001 From: april Date: Mon, 28 Dec 2015 21:55:39 +0800 Subject: [PATCH] Misspelling in message Misspelling in the message: "commited immediately to the DB" Should be "committed immediately to the DB" Totally 4 occasions in Cinder base code Change-Id: I3ae84e7680fe4da721047cd9a0e2d94ec426795f --- cinder/db/sqlalchemy/api.py | 2 +- cinder/volume/drivers/remotefs.py | 4 ++-- cinder/volume/flows/api/create_volume.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cinder/db/sqlalchemy/api.py b/cinder/db/sqlalchemy/api.py index b62741c3b..c4b8e6187 100644 --- a/cinder/db/sqlalchemy/api.py +++ b/cinder/db/sqlalchemy/api.py @@ -1877,7 +1877,7 @@ def _volume_x_metadata_update(context, volume_id, metadata, delete, model, with session.begin(subtransactions=True): # Set existing metadata to deleted if delete argument is True. This is - # commited immediately to the DB + # committed immediately to the DB if delete: expected_values = {'volume_id': volume_id} # We don't want to delete keys we are going to update diff --git a/cinder/volume/drivers/remotefs.py b/cinder/volume/drivers/remotefs.py index cc27c46df..24a403c2a 100644 --- a/cinder/volume/drivers/remotefs.py +++ b/cinder/volume/drivers/remotefs.py @@ -1024,7 +1024,7 @@ class RemoteFSSnapDriver(RemoteFSDriver, driver.SnapshotVD): # T0 | T1 | # base | snapshot_file | None # (guaranteed to| (being deleted, | - # exist) | commited down) | + # exist) | committed down) | self._img_commit(snapshot_path) # Active file has changed @@ -1033,7 +1033,7 @@ class RemoteFSSnapDriver(RemoteFSDriver, driver.SnapshotVD): # T0 | T1 | T2 | T3 # base | snapshot_file | higher_file | highest_file # (guaranteed to | (being deleted, | (guaranteed to | (may exist) - # exist, not | commited down) | exist, needs | + # exist, not | committed down) | exist, needs | # used here) | | ptr update) | backing_chain = self._get_backing_chain_for_path( diff --git a/cinder/volume/flows/api/create_volume.py b/cinder/volume/flows/api/create_volume.py index e57565f35..160e2333f 100644 --- a/cinder/volume/flows/api/create_volume.py +++ b/cinder/volume/flows/api/create_volume.py @@ -502,7 +502,7 @@ class EntryCreateTask(flow_utils.CinderTask): return if optional_args['is_quota_committed']: - # If quota got commited we shouldn't rollback as the volume has + # If quota got committed we shouldn't rollback as the volume has # already been created and the quota has already been absorbed. return -- 2.45.2