HDFS-9307. fuseConnect should be private to fuse_connect.c (Mingliang Liu via Colin P. McCabe)
(cherry picked from commit faeb6a3f89
)
This commit is contained in:
parent
bb87b4222c
commit
7eb0daefc8
|
@ -522,7 +522,21 @@ error:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int fuseConnect(const char *usrname, struct fuse_context *ctx,
|
||||
/**
|
||||
* Get a libhdfs connection.
|
||||
*
|
||||
* If there is an existing connection, it will be reused. If not, a new one
|
||||
* will be created.
|
||||
*
|
||||
* You must call hdfsConnRelease on the connection you get back!
|
||||
*
|
||||
* @param usrname The username to use
|
||||
* @param ctx The FUSE context to use (contains UID, PID of requestor)
|
||||
* @param conn (out param) The HDFS connection
|
||||
*
|
||||
* @return 0 on success; error code otherwise
|
||||
*/
|
||||
static int fuseConnect(const char *usrname, struct fuse_context *ctx,
|
||||
struct hdfsConn **out)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
@ -39,25 +39,11 @@ int fuseConnectInit(const char *nnUri, int port);
|
|||
* Get a libhdfs connection.
|
||||
*
|
||||
* If there is an existing connection, it will be reused. If not, a new one
|
||||
* will be created.
|
||||
* will be created. The username will be determined from the FUSE thread
|
||||
* context.
|
||||
*
|
||||
* You must call hdfsConnRelease on the connection you get back!
|
||||
*
|
||||
* @param usrname The username to use
|
||||
* @param ctx The FUSE context to use (contains UID, PID of requestor)
|
||||
* @param conn (out param) The HDFS connection
|
||||
*
|
||||
* @return 0 on success; error code otherwise
|
||||
*/
|
||||
int fuseConnect(const char *usrname, struct fuse_context *ctx,
|
||||
struct hdfsConn **out);
|
||||
|
||||
/**
|
||||
* Get a libhdfs connection.
|
||||
*
|
||||
* The same as fuseConnect, except the username will be determined from the FUSE
|
||||
* thread context.
|
||||
*
|
||||
* @param conn (out param) The HDFS connection
|
||||
*
|
||||
* @return 0 on success; error code otherwise
|
||||
|
|
|
@ -754,6 +754,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HDFS-9299. Give ReplicationMonitor a readable thread name (Staffan Friberg
|
||||
via Colin P. McCabe)
|
||||
|
||||
HDFS-9307. fuseConnect should be private to fuse_connect.c (Mingliang Liu
|
||||
via Colin P. McCabe)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||
|
|
Loading…
Reference in New Issue