|
1 | 1 | /* |
2 | 2 | * 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/ |
4 | 4 | * Version 1.1.9 |
5 | 5 | * For information on licensing, redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES |
6 | 6 | * please contact Symisc Systems via: |
|
11 | 11 | * http://unqlite.org/licensing.html |
12 | 12 | */ |
13 | 13 | /* |
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]>]. |
15 | 15 | * All rights reserved. |
16 | 16 | * |
17 | 17 | * Redistribution and use in source and binary forms, with or without |
|
35 | 35 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
36 | 36 | * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
37 | 37 | */ |
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]> $ */ |
39 | 39 | /* This file is an amalgamation of many separate C source files from unqlite version 1.1.9 |
40 | 40 | * By combining all the individual C code files into this single large file, the entire code |
41 | 41 | * 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) |
56969 | 56969 | /* Journaling is omitted, return immediately */ |
56970 | 56970 | return UNQLITE_OK; |
56971 | 56971 | } |
| 56972 | + if (pPager->pjfd == 0) { |
| 56973 | + /* BUGFIX: https://github.com/symisc/unqlite/issues/137 */ |
| 56974 | + return UNQLITE_ABORT; /* Ongoing operation must be aborted */ |
| 56975 | + } |
56972 | 56976 | /* Write the total number of database records */ |
56973 | 56977 | rc = WriteInt32(pPager->pjfd,pPager->nRec,8 /* sizeof(aJournalRec) */); |
56974 | 56978 | if( rc != UNQLITE_OK ){ |
|
0 commit comments