YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

[#282] Enhance source server to handle FILEDELFAIL and RENAMEFAIL error scenarios in a user-friendly fashion #283

Closed nars1 closed 6 years ago

nars1 commented 6 years ago

See issue description at YottaDB/YottaDB#282 for background. The crux of the fix is to sr_port/cre_jnl_file_intrpt_rename.c and sr_port/gtmsource_ctl_init.c. The function cre_jnl_file_intrpt_rename() now returns a status (previously it was void) and its return value is used to determine whether special action needs to be taken in case of the source server.

In order to test these error scenarios, two white-box cases were introduced. And to avoid collision with GTM introduced wbox codes, the YottaDB white-box codes start at 200 which gives a gap of 60 codes that should be ample enough a gap for a few years at least.