_preserve = FALSE;
_clonedir_mode = FALSE;
_tt_opened = FALSE;
+ _to_path_is_dir = 0;
}
copier::
_should_mv = TRUE;
_force = FALSE;
_tt_opened = FALSE;
+ _to_path_is_dir = FALSE;
}
mover::
if (_tt_pointer_error(canonical_path) != TT_OK) {
results.results = TT_DB_ERR_ILLEGAL_FILE;
- results.result_string = '\0';
+ results.result_string = NULL;
} else {
results.results = TT_DB_OK;
results.result_string = canonical_path;
if (_tt_pointer_error(canonical_path) != TT_OK) {
results.results = TT_DB_ERR_ILLEGAL_FILE;
- results.result_string = '\0';
+ results.result_string = NULL;
} else {
results.results = TT_DB_OK;
results.result_string = canonical_path;
class _Tt_oid_access : public _Tt_object {
public:
- _Tt_oid_access() {}
+ _Tt_oid_access() { _user = 0; _group = 0; _mode = 0; }
_Tt_oid_access(const char *key, uid_t user, gid_t group, mode_t mode);
_Tt_oid_access(char *ku);
~_Tt_oid_access();
class _Tt_link_access : public _Tt_object {
public:
- _Tt_link_access() {}
+ _Tt_link_access() { _user = 0; _group = 0; _mode = 0; }
_Tt_link_access(const char *key, uid_t user, gid_t group, mode_t mode);
_Tt_link_access(char *ku);
~_Tt_link_access();
class _Tt_db_message_info : public _Tt_object {
public:
- _Tt_db_message_info () {}
+ _Tt_db_message_info () { messageID = 0; numParts = 0; messageSize = 0; }
~_Tt_db_message_info () {}
int messageID;
else {
getStatusInfo();
}
+
+ maxRecordLength = 0;
+ minRecordLength = 0;
}
_Tt_isam_file
currentRecordLength = -1;
currentRecordNumber = -1;
}
-
+
maxRecordLength = 0;
minRecordLength = 0;
}
class _Tt_isam_file : public _Tt_object {
public:
// Dummy constructor needed to make _tt_isam_file_utils.cc happy
- _Tt_isam_file () {}
+ _Tt_isam_file () { currentRecordLength = 0; currentRecordNumber = 0; eraseFlag = 0; errorStatus = 0;
+ fileDescriptor = 0; fileMode = 0; maxRecordLength = 0; minRecordLength = 0; newFlag = 0; }
// Real constructors
_Tt_isam_file (const _Tt_string &file, int mode);
{
keyDescriptor.k_flags = 0;
keyDescriptor.k_nparts = 0;
+
+ for(int i = 0; i < NPARTS; i++) {
+ keyDescriptor.k_part[i].kp_start = -1;
+ keyDescriptor.k_part[i].kp_leng = -1;
+ keyDescriptor.k_part[i].kp_type = -1;
+ }
}
_Tt_isam_key_descriptor::~_Tt_isam_key_descriptor ()
class _Tt_isam_record : public _Tt_object {
public:
// Dummy constructor needed to make tt_isam_record_utils.cc happy
- _Tt_isam_record () {}
+ _Tt_isam_record () { currentLength = 0; maxLength = 0; minLength = 0; }
// Real constructor
_Tt_isam_record (const _Tt_isam_key_descriptor_list_ptr &key_descriptor_list,
_has_session = 2; // 1 -> -S option, 2 -> set by default
_has_command = 0;
_form = NO_FORM;
+ for(int i = 0; i < MAXARGS; i++) {
+ _cargv[i] = NULL;
+ }
}
int
class _Tt_api_stg_stack_elm : public _Tt_object {
public:
- _Tt_api_stg_stack_elm() {};
+ _Tt_api_stg_stack_elm() { addr = NULL; };
~_Tt_api_stg_stack_elm();
enum {STACK_MARK, STACK_STORAGE} entry_type;
caddr_t addr;
_Tt_typecb()
{
clientdata = 0;
+ _opnum = 0;
}
_Tt_typecb::
currentRecordLength = -1;
currentRecordNumber = -1;
}
+ maxRecordLength = 0;
+ minRecordLength = 0;
}
void _Tt_client_isam_file::setTtISAMFileDefaults ()
class _Tt_client_isam_file : public _Tt_object {
public:
// Dummy constructor needed to make _tt_client_isam_file_utils.cc happy
- _Tt_client_isam_file () {}
+ _Tt_client_isam_file () { currentRecordLength = 0; currentRecordNumber = 0; eraseFlag = 0; errorStatus = 0;
+ fileDescriptor = 0; fileMode = 0; maxRecordLength = 0; minRecordLength = 0; newFlag = 0; }
// Real constructors
_Tt_client_isam_file (const _Tt_string &file,
setTtDBDefaults();
connectToDB(db_hostname);
+ iserrno = 0;
+ isrecnum = 0;
+ isreclen = 0;
+#if !defined(OPT_TLI)
+ dbSocket.sin_family = 0;
+ dbSocket.sin_port = 0;
+#endif
}
_Tt_db_client::_Tt_db_client (_Tt_db_results & status)
_Tt_db_access_ptr access;
dbResults = setTtDBFileDefaults(file, properties, access);
}
+
+ checkedDatabase = FALSE;
+ directoryFlag = FALSE;
+ dbFileObjectsCacheLevel = -1;
+ dbFilePropertiesCacheLevel = -1;
}
_Tt_db_file::_Tt_db_file (const _Tt_string &file,
else {
dbResults = setTtDBFileDefaults(file, properties, access);
}
+
+ checkedDatabase = 0;
+ directoryFlag = 0;
+ dbFileObjectsCacheLevel = -1;
+ dbFilePropertiesCacheLevel = -1;
}
_Tt_db_results
_Tt_old_db::
_Tt_old_db()
{
-}
+ propertyTableFD = 0;
+ dbResults = NULL;
+}
_Tt_old_db::_Tt_old_db (const _Tt_string &partition,
const _Tt_db_client_ptr &db_conn)
_Tt_old_db_message_info::
_Tt_old_db_message_info ()
{
+ messageID = 0;
+ numParts = 0;
+ messageSize = 0;
}
_Tt_old_db_message_info::
categories = new _Tt_int_rec_list;
ptypes = new _Tt_string_list;
version = TT_QMSG_INFO_VERSION;
+
+ id = 0;
+ nparts = 0;
+ size = 0;
+ m_id = 0;
}
_Tt_qmsg_info::~_Tt_qmsg_info()
{
_socket = conn_socket;
_client = (CLIENT *)0;
+ _program = 0;
+ _version = 0;
+ _server_uid = 0;
+ _clnt_stat = NULL;
+ _server_addr.sin_family = 0;
+ _server_addr.sin_port = 0;
}
_is_server = 0; // default server mode
_is_dead = 0;
_rpc_version = 0;
+ _pid = 0;
+ _rpc_program = 0;
+ _server_num = 0;
+ _server_uid = 0;
}
_Tt_stream_socket::
_Tt_stream_socket()
{
+ _is_source = 0;
+ _msgsock = -1;
+ _sock = -1;
+ _hostaddr.sin_port = 0;
+ _hostaddr.sin_family = 0;
}
_Tt_stream_socket::
_hostaddr.sin_addr.s_addr = htonl(INADDR_ANY);
_hostaddr.sin_port = htons(portnum);
_hostaddr.sin_family = AF_INET;
+ _is_source = 0;
+ _sock = -1;
}
_Tt_file_system_entry::
_Tt_file_system_entry ()
{
+ localFlag = 0;
+ loopBackFlag = 0;
}
_Tt_file_system_entry::
_Tt_hostname_cache()
{
hostname = (_Tt_string) 0;
+ addr_length = 0;
}
_Tt_hostname_cache::
_Tt_pid_t_rec::
_Tt_pid_t_rec()
{
+ val = 0;
}
_ptid = (char *)0;
_reliability = TT_DISCARD;
_opnum = -1;
+
+ _scope = NULL;
+ _state = TT_STATE_LAST; // BUG This class member is not set anywhere, but a getter function exists
}
_reliability = reliability;
_opnum = opnum;
_scope = s;
-
+
_state = TT_STATE_LAST; // BUG This class member is not set anywhere, but a getter function exists
}
class _Tt_rpc_server : public _Tt_object {
public:
- _Tt_rpc_server() {};
+ _Tt_rpc_server() { _version = 0; _socket = 0; _program = 0; _rpc_fd = 0; _transp = NULL; };
_Tt_rpc_server(int program, int version, int Rsocket, _Tt_auth &auth);
virtual ~_Tt_rpc_server();
int init(void (*service_fn)(svc_req *, SVCXPRT *));
_rsessions = m->_rsessions;
_when_last_matched = m->_when_last_matched;
_original = m;
+ _num_recipients_yet_to_vote = 0;
}
//
when_last_observer_registered = 1;
update_args.message = new _Tt_s_message();
_self = (_Tt_s_procid *)new _Tt_self_procid();
+
+ map_ptypes = 0;
+ unix_cred_chk_flag = 0;
+ garbage_collector_pid = 0;
+ _next_garbage_run = 0;
}
_proc_host_ipaddr = p->_proc_host_ipaddr;
_pid = p->_pid;
_id = p->_id;
-
+ _itimeout = -1;
}
_Tt_s_procid::