| Index: impl/memory/context.go
|
| diff --git a/impl/memory/context.go b/impl/memory/context.go
|
| index 9b388e70fc761a01eca96c7f23a9375344f1d0b6..286736b4ade8e23c3c2e0c90ef5a508f20715d01 100644
|
| --- a/impl/memory/context.go
|
| +++ b/impl/memory/context.go
|
| @@ -135,6 +135,10 @@ var memContextKey memContextKeyType
|
| // test-access API for TaskQueue better (instead of trying to reconstitute the
|
| // state of the task queue from a bunch of datastore accesses).
|
| func (d *dsImpl) RunInTransaction(f func(context.Context) error, o *ds.TransactionOptions) error {
|
| + if d.data.getDisableSpecialEntities() {
|
| + return errors.New("special entities are disabled. no transactions for you")
|
| + }
|
| +
|
| // Keep in separate function for defers.
|
| loopBody := func(applyForReal bool) error {
|
| curMC := cur(d.c)
|
|
|