Skip to content

Commit

Permalink
fixed an accidental infinite loop whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
USERSATOSHI committed Jan 29, 2024
1 parent 10f09e5 commit 6871dba
Show file tree
Hide file tree
Showing 152 changed files with 13 additions and 13 deletions.
Empty file modified .github/workflows/codeql-analysis.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/node.js.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/publish-dev.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .npmignore
100644 → 100755
Empty file.
Empty file modified .vscode/settings.json
100644 → 100755
Empty file.
Empty file modified .vscode/tasks.json
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified builder/custom.css
100644 → 100755
Empty file.
Empty file modified builder/docgen.js
100644 → 100755
Empty file.
Empty file modified builder/pack.js
100644 → 100755
Empty file.
Empty file modified builder/updateTypeDocConfig.js
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion dist/cjs/KeyValue/src/newtable.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/KeyValue/src/newtable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/KeyValue/src/newtable.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/KeyValue/src/newtable.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/KeyValue/src/newtable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/KeyValue/src/newtable.js.map

Large diffs are not rendered by default.

Empty file modified docs/.nojekyll
100644 → 100755
Empty file.
Empty file modified docs/assets/highlight.css
100644 → 100755
Empty file.
Empty file modified docs/assets/search.js
100644 → 100755
Empty file.
Empty file modified docs/classes/KeyValue.html
100644 → 100755
Empty file.
Empty file modified docs/classes/KeyValueCacher.html
100644 → 100755
Empty file.
Empty file modified docs/classes/KeyValueData.html
100644 → 100755
Empty file.
Empty file modified docs/classes/KeyValueTable.html
100644 → 100755
Empty file.
Empty file modified docs/classes/MemMap.html
100644 → 100755
Empty file.
Empty file modified docs/classes/OldKeyValue.html
100644 → 100755
Empty file.
Empty file modified docs/classes/OldKeyValueCacher.html
100644 → 100755
Empty file.
Empty file modified docs/classes/OldKeyValueData.html
100644 → 100755
Empty file.
Empty file modified docs/classes/OldKeyValueTable.html
100644 → 100755
Empty file.
Empty file modified docs/classes/Receiver.html
100644 → 100755
Empty file.
Empty file modified docs/classes/Referencer.html
100644 → 100755
Empty file.
Empty file modified docs/classes/Transmitter.html
100644 → 100755
Empty file.
Empty file modified docs/classes/WideColumnar.html
100644 → 100755
Empty file.
Empty file modified docs/classes/WideColumnarColumn.html
100644 → 100755
Empty file.
Empty file modified docs/classes/WideColumnarData.html
100644 → 100755
Empty file.
Empty file modified docs/classes/WideColumnarTable.html
100644 → 100755
Empty file.
Empty file modified docs/enums/CacheType.html
100644 → 100755
Empty file.
Empty file modified docs/enums/DatabaseEvents.html
100644 → 100755
Empty file.
Empty file modified docs/enums/DatabaseMethod.html
100644 → 100755
Empty file.
Empty file modified docs/enums/ReceiverOpCodes.html
100644 → 100755
Empty file.
Empty file modified docs/enums/ReferenceType.html
100644 → 100755
Empty file.
Empty file modified docs/enums/TransmitterOpCodes.html
100644 → 100755
Empty file.
Empty file modified docs/functions/JSONParser.html
100644 → 100755
Empty file.
Empty file modified docs/functions/convertV1KeyValuetov2.html
100644 → 100755
Empty file.
Empty file modified docs/functions/createHash.html
100644 → 100755
Empty file.
Empty file modified docs/functions/createHashRawString.html
100644 → 100755
Empty file.
Empty file modified docs/functions/decodeHash.html
100644 → 100755
Empty file.
Empty file modified docs/functions/decrypt.html
100644 → 100755
Empty file.
Empty file modified docs/functions/encrypt.html
100644 → 100755
Empty file.
Empty file modified docs/functions/parse.html
100644 → 100755
Empty file.
Empty file modified docs/functions/parseTransmitterQuery.html
100644 → 100755
Empty file.
Empty file modified docs/functions/returnParseString.html
100644 → 100755
Empty file.
Empty file modified docs/functions/stringify.html
100644 → 100755
Empty file.
Empty file modified docs/index.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/CacherOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/Hash.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueCacheConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueDataConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueDataInterface.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueEncryptionConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueFileConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueJSONOption.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/KeyValueTableOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/LogBlock.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/MemMapOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/ReceiverDataFormat.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/ReceiverOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/TransmitterAnaylzeDataFormat.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/TransmitterCreateOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/TransmitterDataFormat.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/TransmitterOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarCacheConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarColumnOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarDataConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarDataInterface.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarEncryptionConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarFileConfig.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarOptions.html
100644 → 100755
Empty file.
Empty file modified docs/interfaces/WideColumnarTableOptions.html
100644 → 100755
Empty file.
Empty file modified docs/modules.html
100644 → 100755
Empty file.
Empty file modified docs/types/ColumnType.html
100644 → 100755
Empty file.
Empty file modified docs/types/DatabaseOptions.html
100644 → 100755
Empty file.
Empty file modified docs/types/DeepRequired.html
100644 → 100755
Empty file.
Empty file modified docs/types/Key.html
100644 → 100755
Empty file.
Empty file modified docs/types/KeyValueDataValueType.html
100644 → 100755
Empty file.
Empty file modified docs/types/KeyValueTypeList.html
100644 → 100755
Empty file.
Empty file modified docs/types/Optional.html
100644 → 100755
Empty file.
Empty file modified docs/types/PossibleDatabaseTypes.html
100644 → 100755
Empty file.
Empty file modified docs/types/TransmitterQuery.html
100644 → 100755
Empty file.
Empty file modified docs/types/ValidJSON.html
100644 → 100755
Empty file.
Empty file modified docs/types/Value.html
100644 → 100755
Empty file.
Empty file modified docs/types/WideColumnarDataType.html
100644 → 100755
Empty file.
Empty file modified docs/variables/ReferenceConstantSpace.html
100644 → 100755
Empty file.
Empty file modified lib/Graph/src/database.ts
100644 → 100755
Empty file.
Empty file modified lib/Graph/src/table.ts
100644 → 100755
Empty file.
Empty file modified lib/Graph/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/Graph/typings/type.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/index.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/src/cache.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/src/data.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/src/database.ts
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions lib/KeyValue/src/newtable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,8 @@ Attempting to repair file ${fileObj.name} in table ${
return;
}

fileObj.isInWriteMode = true;

let fileData = await this.fetchFile(`${this.paths.table}/${file}`);
fileObj.isInWriteMode = true;

if (!fileData) {
fileData = {};
Expand Down
Empty file modified lib/KeyValue/src/table.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/KeyValue/typings/type.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/index.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/src/cache.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/src/data.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/src/database.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/src/table.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/OldKeyValue/typings/type.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/index.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/src/receiver.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/src/transmitter.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/typings/enum.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/Remote/typings/type.ts
100644 → 100755
Empty file.
Empty file modified lib/WideColumnar/src/Column.ts
100644 → 100755
Empty file.
Empty file modified lib/WideColumnar/src/Table.ts
100644 → 100755
Empty file.
Empty file modified lib/WideColumnar/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/WideColumnar/typings/types.ts
100644 → 100755
Empty file.
Empty file modified lib/global/referencer.ts
100644 → 100755
Empty file.
Empty file modified lib/index.ts
100644 → 100755
Empty file.
Empty file modified lib/typings/enum.ts
100644 → 100755
Empty file.
Empty file modified lib/typings/interface.ts
100644 → 100755
Empty file.
Empty file modified lib/typings/type.ts
100644 → 100755
Empty file.
Empty file modified lib/utils.ts
100644 → 100755
Empty file.
Empty file modified package-lock.json
100644 → 100755
Empty file.
Empty file modified site/.gitignore
100644 → 100755
Empty file.
Empty file modified site/.vscode/extensions.json
100644 → 100755
Empty file.
Empty file modified site/.vscode/launch.json
100644 → 100755
Empty file.
Empty file modified site/README.md
100644 → 100755
Empty file.
Empty file modified site/astro.config.mjs
100644 → 100755
Empty file.
Empty file modified site/package-lock.json
100644 → 100755
Empty file.
Empty file modified site/package.json
100644 → 100755
Empty file.
Empty file modified site/public/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified site/src/assets/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified site/src/env.d.ts
100644 → 100755
Empty file.
Empty file modified site/src/layouts/Layout.astro
100644 → 100755
Empty file.
Empty file modified site/src/pages/index.astro
100644 → 100755
Empty file.
Empty file modified site/tsconfig.json
100644 → 100755
Empty file.
Empty file modified site/utils/types.js
100644 → 100755
Empty file.
11 changes: 6 additions & 5 deletions tests/KeyValue/a.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ const db = new KeyValue({
db.on(DatabaseEvents.Connect, async () => {
console.log("ready");
await st(1000);
db.set("main","hello"+Math.random(),{value: Math.random()})
db.set("main","hello"+Math.random(),{value: Math.random()})
db.set("main","hello"+Math.random(),{value: Math.random()})
db.set("main","hello"+Math.random(),{value: Math.random()})
db.set("main","hello"+Math.random(),{value: Math.random()})
for(let i =0;i < 100000;i++) {
await db.set("main", "key" + i, { value: 1 });
}
console.log("done")
console.log(await db.get("main","key50000"))
console.log(await db.findOne("main",dt => dt.key.startsWith("key50000")))
});

db.connect();
Empty file modified tests/Remote/t.js
100644 → 100755
Empty file.
Empty file modified tsconfig-base.json
100644 → 100755
Empty file.
Empty file modified tsconfig-cjs.json
100644 → 100755
Empty file.
Empty file modified tsconfig.json
100644 → 100755
Empty file.
Empty file modified typedoc.json
100644 → 100755
Empty file.

0 comments on commit 6871dba

Please sign in to comment.