Fix batch insert error 31/307431/1 accepted/tizen/unified/20240308.174226 accepted/tizen/unified/x/20240311.100122
authorminje.ahn <minje.ahn@samsung.com>
Fri, 8 Mar 2024 07:32:02 +0000 (16:32 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Fri, 8 Mar 2024 07:32:02 +0000 (16:32 +0900)
storage_id is NULL when batch insert case.

Change-Id: Icddbef60ad00c79c7c2b6112cd7ff4ff30f43251
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
lib/media-util-register.c

index cf9eb40..dd731bd 100644 (file)
@@ -232,7 +232,6 @@ static int __media_db_request_update_async(ms_msg_type_e msg_type,
        g_autofree gchar *request_path = NULL;
 
        MSAPI_RETVM_IF(!path || strlen(path) == 0, MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid path");
-       MSAPI_RETVM_IF(!storage_id || strlen(storage_id) == 0, MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid storage_id");
 
        request_path = g_canonicalize_filename(path, NULL);
        MSAPI_DBG_SLOG("trimmed path[%s]", request_path);