Skip to content

Commit ac63209

Browse files
authored
Bug Fix: #137
Refer to: #137 for a detailed overview...
1 parent 90c6f91 commit ac63209

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

unqlite.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Symisc UnQLite: An Embeddable NoSQL (Post Modern) Database Engine.
3-
* Copyright (C) 2012-2019, Symisc Systems http://unqlite.org/
3+
* Copyright (C) 2012-2022, Symisc Systems http://unqlite.org/
44
* Version 1.1.9
55
* For information on licensing, redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES
66
* please contact Symisc Systems via:
@@ -11,7 +11,7 @@
1111
* http://unqlite.org/licensing.html
1212
*/
1313
/*
14-
* Copyright (C) 2012, 2019 Symisc Systems, S.U.A.R.L [M.I.A.G Mrad Chems Eddine <[email protected]>].
14+
* Copyright (C) 2012, 2022 Symisc Systems, S.U.A.R.L [M.I.A.G Mrad Chems Eddine <[email protected]>].
1515
* All rights reserved.
1616
*
1717
* Redistribution and use in source and binary forms, with or without
@@ -35,7 +35,7 @@
3535
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
3636
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737
*/
38-
/* $SymiscID: unqlite.c v1.1.9 Win10 2108-04-27 02:35:11 stable <[email protected]> $ */
38+
/* $SymiscID: unqlite.c v1.1.9 Win10 2022-04-25 03:34:11 stable <[email protected]> $ */
3939
/* This file is an amalgamation of many separate C source files from unqlite version 1.1.9
4040
* By combining all the individual C code files into this single large file, the entire code
4141
* can be compiled as a single translation unit. This allows many compilers to do optimization's
@@ -56969,6 +56969,10 @@ static int unqliteFinalizeJournal(Pager *pPager,int *pRetry,int close_jrnl)
5696956969
/* Journaling is omitted, return immediately */
5697056970
return UNQLITE_OK;
5697156971
}
56972+
if (pPager->pjfd == 0) {
56973+
/* BUGFIX: https://github.com/symisc/unqlite/issues/137 */
56974+
return UNQLITE_ABORT; /* Ongoing operation must be aborted */
56975+
}
5697256976
/* Write the total number of database records */
5697356977
rc = WriteInt32(pPager->pjfd,pPager->nRec,8 /* sizeof(aJournalRec) */);
5697456978
if( rc != UNQLITE_OK ){

0 commit comments

Comments
 (0)