Skip to content
Snippets Groups Projects
Verified Commit 2e6e09f6 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Rename TransactionType cases to ..._ONLY

parent 940ffaab
Branches
Tags
2 merge requests!33Release 0.1,!32fix windows build
Pipeline #15245 failed
...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \ return StatusCode::TRANSACTION_STATUS_ERROR; \
} \ } \
switch (this->transaction_type) { \ switch (this->transaction_type) { \
case NONE: \ case TransactionType::NONE: \
this->transaction_type = TransactionType::DELETE2; \ this->transaction_type = TransactionType::DELETE_ONLY; \
case DELETE2: \ case TransactionType::DELETE_ONLY: \
case MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
case MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
break; \ break; \
default: \ default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \ CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
} \ } \
switch (this->transaction_type) { \ switch (this->transaction_type) { \
case TransactionType::NONE: \ case TransactionType::NONE: \
this->transaction_type = TransactionType::INSERT; \ this->transaction_type = TransactionType::INSERT_ONLY; \
case TransactionType::INSERT: \ case TransactionType::INSERT_ONLY: \
case TransactionType::MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
case TransactionType::MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
break; \ break; \
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
} \ } \
switch (this->transaction_type) { \ switch (this->transaction_type) { \
case TransactionType::NONE: \ case TransactionType::NONE: \
this->transaction_type = TransactionType::INSERT; \ this->transaction_type = TransactionType::UPDATE_ONLY; \
case TransactionType::INSERT: \ case TransactionType::UPDATE_ONLY: \
case TransactionType::MIXED_WRITE: \ case TransactionType::MIXED_WRITE: \
case TransactionType::MIXED_READ_AND_WRITE: \ case TransactionType::MIXED_READ_AND_WRITE: \
break; \ break; \
...@@ -288,9 +288,9 @@ public: ...@@ -288,9 +288,9 @@ public:
enum TransactionType { enum TransactionType {
NONE, //!< Unspecified or not specified yet. NONE, //!< Unspecified or not specified yet.
READ_ONLY, //!< Only retrievals (by id, by query) READ_ONLY, //!< Only retrievals (by id, by query)
INSERT, //!< Only insertions INSERT_ONLY, //!< Only insertions
UPDATE, //!< Only updates UPDATE_ONLY, //!< Only updates
DELETE2, //!< Only deletions DELETE_ONLY, //!< Only deletions
MIXED_WRITE, //!< Only insertions, deletions, updates MIXED_WRITE, //!< Only insertions, deletions, updates
MIXED_READ_AND_WRITE //!< all kind of transaction. MIXED_READ_AND_WRITE //!< all kind of transaction.
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment