Browse Source
Correctly pass arangodb driver Transaction ID into the context (#3586)
Update arangodb_store.go
pull/3587/head
gfx
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/filer/arangodb/arangodb_store.go
|
|
@ -121,7 +121,7 @@ func (store *ArangodbStore) BeginTransaction(ctx context.Context) (context.Conte |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
|
|
|
|
return context.WithValue(ctx, transactionKey, txn), nil |
|
|
|
return context.WithValue(driver.WithTransactionID(ctx, txn), transactionKey, txn), nil |
|
|
|
} |
|
|
|
|
|
|
|
func (store *ArangodbStore) CommitTransaction(ctx context.Context) error { |
|
|
|