mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 17:23:03 +01:00
Misc.
This commit is contained in:
parent
05de852588
commit
d543daf51a
@ -126,10 +126,10 @@ An ability to upgrade interface version places one important limit on
|
||||
implementation of interfaces: it should not contain virtual functions
|
||||
(including virtual destructor) except those defined in interface
|
||||
definition. This is because interface upgrade process modifies table
|
||||
of virtual functions, and for successful upgrade number of functions
|
||||
in interface implementation should exactly match one in it's
|
||||
of virtual functions, and for successful upgrade, number of functions
|
||||
in interface implementation should exactly match one in its
|
||||
definition. Pointer to functions, missing in interface definition but
|
||||
added in it's implementation, may be </FONT><FONT COLOR="#ff0000"><FONT SIZE=4>overwritten</FONT></FONT><FONT SIZE=4>
|
||||
added in its implementation, may be </FONT><FONT COLOR="#ff0000"><FONT SIZE=4>overwritten</FONT></FONT><FONT SIZE=4>
|
||||
with a pointer to function used to upgrade interface.</FONT></P>
|
||||
<P STYLE="margin-bottom: 0in"><BR>
|
||||
</P>
|
||||
|
@ -197,7 +197,7 @@ found in source code of fbsvcmgr.
|
||||
(Alex Peshkov, peshkoff@mail.ru, 2013)
|
||||
|
||||
If one wants to use services API to access database which is configured to use
|
||||
non-default security database new SPB item isc_spb_expected_db should be used
|
||||
non-default security database, new SPB item isc_spb_expected_db should be used
|
||||
when attaching to services manager. Value of this item is a database which is
|
||||
expected to be accessed.
|
||||
|
||||
|
@ -216,7 +216,7 @@ void dumpIt(const char* name, const Firebird::string& str)
|
||||
void dumpBin(const char* name, const Firebird::string& str)
|
||||
{
|
||||
fprintf(stderr, "%s (%ld)\n", name, str.length());
|
||||
for (size_t x=0; x<str.length(); ++x)
|
||||
for (size_t x = 0; x < str.length(); ++x)
|
||||
fprintf(stderr, "%02x ", str[x]);
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ bool SyncObject::wait(SyncType type, ThreadSync* thread, Sync* sync, int timeOut
|
||||
if (thread->lockGranted)
|
||||
return true;
|
||||
|
||||
(void)wakeup;
|
||||
(void) wakeup;
|
||||
//if (!wakeup)
|
||||
// stalled(thread);
|
||||
|
||||
|
@ -890,7 +890,7 @@ void GDS_breakpoint(int);
|
||||
#define FB_FINAL
|
||||
#endif
|
||||
|
||||
#define FB_UNUSED(value) do { if(value); } while (false)
|
||||
#define FB_UNUSED(value) do { if (value); } while (false)
|
||||
|
||||
// 30 Dec 2002. Nickolay Samofatov
|
||||
// This needs to be checked for all supported platforms
|
||||
|
@ -82,7 +82,7 @@ static string getExecutablePath()
|
||||
_NSGetExecutablePath(file_buff, &bufsize);
|
||||
char canonic[PATH_MAX];
|
||||
if (!realpath(file_buff, canonic))
|
||||
Firebird::system_call_failed::raise("realpath");
|
||||
Firebird::system_call_failed::raise("realpath");
|
||||
string bin_dir = canonic;
|
||||
// get rid of the filename
|
||||
int index = bin_dir.rfind(PathUtils::dir_sep);
|
||||
@ -93,7 +93,7 @@ static string getExecutablePath()
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ConfigRoot::osConfigRoot()
|
||||
{
|
||||
// Attempt to locate the Firebird.framework bundle
|
||||
@ -110,7 +110,7 @@ void ConfigRoot::osConfigRoot()
|
||||
}
|
||||
|
||||
// As a last resort get it from the default install directory
|
||||
root_dir = FB_PREFIX;
|
||||
root_dir = FB_PREFIX;
|
||||
}
|
||||
|
||||
|
||||
@ -130,5 +130,5 @@ void ConfigRoot::osConfigInstallDir()
|
||||
}
|
||||
|
||||
// As a last resort get it from the default install directory
|
||||
install_dir = FB_PREFIX;
|
||||
install_dir = FB_PREFIX;
|
||||
}
|
||||
|
@ -1151,7 +1151,7 @@ static void write_log(int log_action, const char* buff)
|
||||
FORMAT_MESSAGE_FROM_STRING,
|
||||
tmp_buff, 0, 0, (LPTSTR) &lpMsgBuf, 0,
|
||||
reinterpret_cast<va_list*>(act_buff));
|
||||
|
||||
|
||||
const int len = MIN(BUFF_SIZE-1, strlen(lpMsgBuf) - 1);
|
||||
strncpy(act_buff[0], lpMsgBuf, len);
|
||||
act_buff[0][len] = 0;
|
||||
|
@ -1011,7 +1011,7 @@ Format* MET_current(thread_db* tdbb, jrd_rel* relation)
|
||||
if (!(relation->rel_flags & REL_scanned))
|
||||
{
|
||||
AutoCacheRequest request(tdbb, irq_l_curr_format, IRQ_REQUESTS);
|
||||
|
||||
|
||||
FOR(REQUEST_HANDLE request)
|
||||
REL IN RDB$RELATIONS WITH REL.RDB$RELATION_ID EQ relation->rel_id
|
||||
{
|
||||
@ -1024,7 +1024,7 @@ Format* MET_current(thread_db* tdbb, jrd_rel* relation)
|
||||
// However, system tables have zero as their initial format and they don't have
|
||||
// any related records in RDB$FORMATS, instead their rel_formats[0] is initialized
|
||||
// directly (see ini.epp). Every other case of zero format number found for an already
|
||||
// scanned table must be catched here and investigated.
|
||||
// scanned table must be catched here and investigated.
|
||||
fb_assert(relation->rel_current_fmt || relation->isSystem());
|
||||
|
||||
relation->rel_current_format = MET_format(tdbb, relation, relation->rel_current_fmt);
|
||||
|
@ -1881,7 +1881,7 @@ static TraNumber bump_transaction_id(thread_db* tdbb, WIN* window)
|
||||
return number;
|
||||
|
||||
// If this is the first transaction on a TIP, allocate the TIP now.
|
||||
// Note, first TIP page is created with the database itself,
|
||||
// Note, first TIP page is created with the database itself,
|
||||
// see JProvider::createDatabase.
|
||||
|
||||
const bool new_tip = ((number % dbb->dbb_page_manager.transPerTIP) == 0);
|
||||
@ -1933,7 +1933,7 @@ static header_page* bump_transaction_id(thread_db* tdbb, WIN* window)
|
||||
const TraNumber number = header->hdr_next_transaction + 1;
|
||||
|
||||
// If this is the first transaction on a TIP, allocate the TIP now.
|
||||
// Note, first TIP page is created with the database itself,
|
||||
// Note, first TIP page is created with the database itself,
|
||||
// see JProvider::createDatabase.
|
||||
|
||||
const bool new_tip = ((number % dbb->dbb_page_manager.transPerTIP) == 0);
|
||||
@ -2527,7 +2527,7 @@ static void transaction_flush(thread_db* tdbb, USHORT flush_flag, TraNumber tra_
|
||||
*
|
||||
* Functional description
|
||||
* Flush pages modified by user and\or system transaction.
|
||||
* Note, flush of user transaction also flushed pages,
|
||||
* Note, flush of user transaction also flushed pages,
|
||||
* changed by system transaction.
|
||||
*
|
||||
**************************************/
|
||||
|
@ -1747,7 +1747,7 @@ static bool accept_connection(rem_port* port, P_CNCT* connect, PACKET* send)
|
||||
{
|
||||
AuthServerPlugins* const plugins = port->port_srv_auth_block->plugins;
|
||||
NoCaseString clientPluginName(port->port_srv_auth_block->getPluginName());
|
||||
// If there is plugin matching client's one it will be
|
||||
// If there is plugin matching client's one it will be
|
||||
HANDSHAKE_DEBUG(fprintf(stderr, "Srv: accept_connection: client plugin='%s' server='%s'\n",
|
||||
clientPluginName.c_str(), plugins->name()));
|
||||
|
||||
|
@ -543,7 +543,7 @@ namespace
|
||||
~FactoryParameter()
|
||||
{
|
||||
#ifdef DEBUG_PLUGINS
|
||||
fprintf(stderr, "~FactoryParameter places configuredPlugin %s in unload query for %d seconds\n",
|
||||
fprintf(stderr, "~FactoryParameter places configuredPlugin %s in unload query for %d seconds\n",
|
||||
configuredPlugin->getPlugName(), configuredPlugin->getReleaseDelay() / 1000000);
|
||||
#endif
|
||||
TimerInterfacePtr()->start(configuredPlugin, configuredPlugin->getReleaseDelay());
|
||||
|
Loading…
Reference in New Issue
Block a user