lib/nfs/Connection: remove unnecessary initializers from MountInternal()
This commit is contained in:
parent
d61c83ace8
commit
e6b1cf540b
|
@ -565,17 +565,10 @@ NfsConnection::MountInternal()
|
||||||
assert(GetEventLoop().IsInside());
|
assert(GetEventLoop().IsInside());
|
||||||
assert(mount_state == MountState::INITIAL);
|
assert(mount_state == MountState::INITIAL);
|
||||||
|
|
||||||
postponed_mount_error = std::exception_ptr();
|
|
||||||
mount_state = MountState::WAITING;
|
mount_state = MountState::WAITING;
|
||||||
|
|
||||||
mount_timeout_event.Schedule(NFS_MOUNT_TIMEOUT);
|
mount_timeout_event.Schedule(NFS_MOUNT_TIMEOUT);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
in_service = false;
|
|
||||||
in_event = false;
|
|
||||||
in_destroy = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (nfs_mount_async(context, server.c_str(), export_name.c_str(),
|
if (nfs_mount_async(context, server.c_str(), export_name.c_str(),
|
||||||
MountCallback, this) != 0) {
|
MountCallback, this) != 0) {
|
||||||
mount_state = MountState::FINISHED;
|
mount_state = MountState::FINISHED;
|
||||||
|
|
|
@ -111,18 +111,18 @@ class NfsConnection {
|
||||||
/**
|
/**
|
||||||
* True when nfs_service() is being called.
|
* True when nfs_service() is being called.
|
||||||
*/
|
*/
|
||||||
bool in_service;
|
bool in_service = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* True when OnSocketReady() is being called. During that,
|
* True when OnSocketReady() is being called. During that,
|
||||||
* event updates are omitted.
|
* event updates are omitted.
|
||||||
*/
|
*/
|
||||||
bool in_event;
|
bool in_event = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* True when DestroyContext() is being called.
|
* True when DestroyContext() is being called.
|
||||||
*/
|
*/
|
||||||
bool in_destroy;
|
bool in_destroy = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue