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
parent
commit
3621987727
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/filer/arangodb/arangodb_store.go

2
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 {

Loading…
Cancel
Save