Signed-off-by: Tony Asleson <tasle...@redhat.com> --- c_binding/lsm_mgmt.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/c_binding/lsm_mgmt.cpp b/c_binding/lsm_mgmt.cpp index 43c65db..cf7ce30 100644 --- a/c_binding/lsm_mgmt.cpp +++ b/c_binding/lsm_mgmt.cpp @@ -1162,18 +1162,7 @@ int lsm_volume_delete(lsm_connect *c, lsm_volume *volume, char **job, Value response; rc = rpc(c, "volume_delete", parameters, response); - if( LSM_ERR_OK == rc ) { - //We get a value back, either null or job id. - if( Value::string_t == response.valueType() ) { - *job = strdup(response.asString().c_str()); - - if( *job ) { - rc = LSM_ERR_JOB_STARTED; - } else { - rc = LSM_ERR_NO_MEMORY; - } - } - } + rc = jobCheck(c, rc, response, job); } catch( const ValueException &ve ) { rc = logException(c, LSM_ERR_LIB_BUG, "Unexpected type", ve.what()); -- 1.8.2.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libstoragemgmt-devel mailing list Libstoragemgmt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel