-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21. [DONE] Add condition handlers to utility routines. 22. [DONE] Add check for process_exiting to utility routines to prevent calls after YottaDB closes down (ydb_exit driven). 23. [DONE] Make TPTIMEOUT work. Added outofband checking to each simpleAPI call and blocked the other 3 (maybe 4) outofband types if the environment is simpleAPI (current frame is simpleAPI base frame). Also allow ^C (in outofband processing) to exit for simpleAPI mode. 26. [DONE] Change ydb_exit() where it checks that it is not running an external call that check should be bypassed when the process is exiting (process_exiting is set). 28. [DONE] Change YDB_MAX_STR from (1 * 1000 * 1000) to (1 * 1024 * 1024).
- Loading branch information
Showing
36 changed files
with
426 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/**************************************************************** | ||
* * | ||
* Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. * | ||
* All rights reserved. * | ||
* * | ||
* This source code contains the intellectual property * | ||
* of its copyright holder(s), and is made available * | ||
* under a license. If you do not know the terms of * | ||
* the license, please stop and do not read further. * | ||
* * | ||
****************************************************************/ | ||
|
||
#include "mdef.h" | ||
|
||
#include "gtmxc_types.h" | ||
#include "error.h" | ||
#include "send_msg.h" | ||
#include "libydberrors.h" | ||
|
||
/* Simple YottaDB wrapper for the gtm_is_file_identical() utility function */ | ||
int ydb_file_is_identical(ydb_fileid_ptr_t fileid1, ydb_fileid_ptr_t fileid2) | ||
{ | ||
boolean_t error_encountered; | ||
int status; | ||
DCL_THREADGBL_ACCESS; | ||
|
||
SETUP_THREADGBL_ACCESS; | ||
if (process_exiting) | ||
{ /* YDB runtime environment not setup/available, no driving of errors */ | ||
send_msg_csa(CSA_ARG(NULL) VARLSTCNT(1) ERR_CALLINAFTERXIT); | ||
return YDB_ERR_CALLINAFTERXIT; | ||
} | ||
ESTABLISH_NORET(ydb_simpleapi_ch, error_encountered); | ||
if (error_encountered) | ||
{ /* Some error occurred - return the error code to the caller ($ZSTATUS is set) */ | ||
REVERT; | ||
return -(TREF(ydb_error_code)); | ||
} | ||
status = gtm_is_file_identical(fileid1, fileid2); | ||
REVERT; | ||
return status ? YDB_OK : -1; | ||
} |
Oops, something went wrong.