Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
22abf083
Verified
Commit
22abf083
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Add enum name to cases.
parent
9d4c6549
No related branches found
No related tags found
2 merge requests
!33
Release 0.1
,
!32
fix windows build
Pipeline
#14133
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#14138
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/caosdb/transaction.h
+15
-15
15 additions, 15 deletions
include/caosdb/transaction.h
src/caosdb/transaction.cpp
+2
-2
2 additions, 2 deletions
src/caosdb/transaction.cpp
with
17 additions
and
17 deletions
include/caosdb/transaction.h
+
15
−
15
View file @
22abf083
...
...
@@ -55,12 +55,12 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \
} \
switch (this->transaction_type) { \
case
NONE:
\
case
TransactionType::NONE:
\
this->transaction_type = TransactionType::READ_ONLY; \
break; \
case
READ_ONLY:
\
case
TransactionType::READ_ONLY:
\
break; \
case MIXED_READ_AND_WRITE:
\
case
TransactionType::
MIXED_READ_AND_WRITE: \
break; \
default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...
...
@@ -91,11 +91,11 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \
} \
switch (this->transaction_type) { \
case
NONE:
\
case
TransactionType::NONE:
\
this->transaction_type = TransactionType::DELETE; \
case
DELETE:
\
case
MIXED_WRITE:
\
case MIXED_READ_AND_WRITE:
\
case
TransactionType::DELETE:
\
case
TransactionType::MIXED_WRITE:
\
case
TransactionType::
MIXED_READ_AND_WRITE: \
break; \
default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...
...
@@ -113,11 +113,11 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \
} \
switch (this->transaction_type) { \
case
NONE:
\
case
TransactionType::NONE:
\
this->transaction_type = TransactionType::INSERT; \
case
INSERT:
\
case
MIXED_WRITE:
\
case MIXED_READ_AND_WRITE:
\
case
TransactionType::INSERT:
\
case
TransactionType::MIXED_WRITE:
\
case
TransactionType::
MIXED_READ_AND_WRITE: \
break; \
default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...
...
@@ -135,11 +135,11 @@
return StatusCode::TRANSACTION_STATUS_ERROR; \
} \
switch (this->transaction_type) { \
case
NONE:
\
case
TransactionType::NONE:
\
this->transaction_type = TransactionType::INSERT; \
case
INSERT:
\
case
MIXED_WRITE:
\
case MIXED_READ_AND_WRITE:
\
case
TransactionType::INSERT:
\
case
TransactionType::MIXED_WRITE:
\
case
TransactionType::
MIXED_READ_AND_WRITE: \
break; \
default: \
CAOSDB_LOG_ERROR_AND_RETURN_STATUS( \
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/transaction.cpp
+
2
−
2
View file @
22abf083
...
...
@@ -193,13 +193,13 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { // NOLINT
return
StatusCode
::
TRANSACTION_STATUS_ERROR
;
}
switch
(
this
->
transaction_type
)
{
case
MIXED_WRITE
:
case
TransactionType
::
MIXED_WRITE
:
CAOSDB_LOG_ERROR_AND_RETURN_STATUS
(
logger_name
,
StatusCode
::
UNSUPPORTED_FEATURE
,
"MIXED_WRITE UNSUPPORTED: The current implementation does not support "
"mixed write transactions (containing insertions, deletions, and updates "
"in one transaction)."
)
case
MIXED_READ_AND_WRITE
:
case
TransactionType
::
MIXED_READ_AND_WRITE
:
CAOSDB_LOG_ERROR_AND_RETURN_STATUS
(
logger_name
,
StatusCode
::
UNSUPPORTED_FEATURE
,
"MIXED_WRITE UNSUPPORTED: The current implementation does not support "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment