[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: fix schema upgrade in memoryidb backend
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: fix schema upgrade in memoryidb backend |
Date: |
Mon, 16 Nov 2020 14:48:48 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit deaeb17c023eb23ca97dcce08b36d5c0ebca9b0e
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Nov 16 14:32:06 2020 +0100
fix schema upgrade in memoryidb backend
---
packages/idb-bridge/src/MemoryBackend.ts | 8 --------
1 file changed, 8 deletions(-)
diff --git a/packages/idb-bridge/src/MemoryBackend.ts
b/packages/idb-bridge/src/MemoryBackend.ts
index e8aec766..531a7f29 100644
--- a/packages/idb-bridge/src/MemoryBackend.ts
+++ b/packages/idb-bridge/src/MemoryBackend.ts
@@ -72,7 +72,6 @@ interface Index {
interface Database {
committedObjectStores: { [name: string]: ObjectStore };
- modifiedObjectStores: { [name: string]: ObjectStore };
committedSchema: Schema;
/**
* Was the transaction deleted during the running transaction?
@@ -326,7 +325,6 @@ export class MemoryBackend implements Backend {
committedObjectStores: objectStores,
committedSchema: structuredClone(schema),
connectionCookie: undefined,
- modifiedObjectStores: {},
txLevel: TransactionLevel.Disconnected,
txRestrictObjectStores: undefined,
};
@@ -448,7 +446,6 @@ export class MemoryBackend implements Backend {
committedSchema: schema,
deleted: false,
committedObjectStores: {},
- modifiedObjectStores: {},
txLevel: TransactionLevel.Disconnected,
connectionCookie: undefined,
txRestrictObjectStores: undefined,
@@ -782,7 +779,6 @@ export class MemoryBackend implements Backend {
indexes: {},
};
myConn.objectStoreMap[name] = { store: newObjectStore, indexMap: {} };
- db.modifiedObjectStores[name] = newObjectStore;
}
createIndex(
@@ -820,9 +816,6 @@ export class MemoryBackend implements Backend {
originalName: indexName,
};
myConn.objectStoreMap[objectStoreName].indexMap[indexName] = newIndex;
- db.modifiedObjectStores[objectStoreName].modifiedIndexes[
- indexName
- ] = newIndex;
const schema = myConn.modifiedSchema;
if (!schema) {
throw Error("no schema in versionchange tx");
@@ -1530,7 +1523,6 @@ export class MemoryBackend implements Backend {
if (db.txLevel < TransactionLevel.Read) {
throw Error("only allowed while running a transaction");
}
- db.modifiedObjectStores = {};
db.txLevel = TransactionLevel.Connected;
db.txRestrictObjectStores = undefined;
myConn.modifiedSchema = structuredClone(db.committedSchema);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.