Commit 46e1d75b authored by Job Vranish's avatar Job Vranish
Browse files

added ignores for empty metadata fields

parent 1a031908
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -175,9 +175,6 @@ void* KineticController_ReceiveThread(void* thread_arg)
                if (status != KINETIC_STATUS_SUCCESS) {
                    LOGF0("ERROR: PDU receive reported an error: %s", Kinetic_GetStatusDescription(status));
                }
                else {
                    status = KineticPDU_GetStatus(response);
                }

                if (response->proto != NULL && response->proto->has_authType) {

@@ -224,6 +221,8 @@ void* KineticController_ReceiveThread(void* thread_arg)
                                status = KineticPDU_GetStatus(response);
                            }
                            
                            LOGF2("Response PDU received w/status %s, %i", Kinetic_GetStatusDescription(status), status);

                            KineticOperation_Complete(op, status);
                        }
                    }
+4 −4
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ bool Copy_KineticProto_Command_KeyValue_to_KineticEntry(KineticProto_Command_Key
    if (keyValue != NULL && entry != NULL) {

        ByteBuffer_Reset(&entry->newVersion);
        if (keyValue->has_newVersion) {
        if (keyValue->has_newVersion && keyValue->newVersion.len > 0) {
            if (entry->newVersion.array.data == NULL ||
                entry->newVersion.array.len < keyValue->newVersion.len) {
                entry->newVersion.bytesUsed = keyValue->newVersion.len;
@@ -237,7 +237,7 @@ bool Copy_KineticProto_Command_KeyValue_to_KineticEntry(KineticProto_Command_Key
        }

        ByteBuffer_Reset(&entry->dbVersion);
        if (keyValue->has_dbVersion) {
        if (keyValue->has_dbVersion && keyValue->dbVersion.len > 0) {
            if (entry->dbVersion.array.data == NULL || entry->dbVersion.array.len < keyValue->dbVersion.len) {
                entry->dbVersion.bytesUsed = keyValue->dbVersion.len;
                LOG1(" BUFFER_OVERRUN: dbVersion");
@@ -249,7 +249,7 @@ bool Copy_KineticProto_Command_KeyValue_to_KineticEntry(KineticProto_Command_Key
        }

        ByteBuffer_Reset(&entry->key);
        if (keyValue->has_key) {
        if (keyValue->has_key && keyValue->key.len > 0) {
            if (entry->key.array.data == NULL || entry->key.array.len < keyValue->key.len) {
                entry->key.bytesUsed = keyValue->key.len;
                LOG1(" BUFFER_OVERRUN: key");
@@ -261,7 +261,7 @@ bool Copy_KineticProto_Command_KeyValue_to_KineticEntry(KineticProto_Command_Key
        }

        ByteBuffer_Reset(&entry->tag);
        if (keyValue->has_tag) {
        if (keyValue->has_tag && keyValue->tag.len > 0) {
            if (entry->tag.array.data == NULL || entry->tag.array.len < keyValue->tag.len) {
                entry->tag.bytesUsed = keyValue->tag.len;
                LOG1(" BUFFER_OVERRUN: tag");