mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
obuspa: Optimize set requests to reduce reloads
This commit is contained in:
parent
6166ba0041
commit
0a7245d2f9
2 changed files with 28 additions and 2 deletions
|
|
@ -5,13 +5,13 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=obuspa
|
||||
PKG_VERSION:=10.0.0.5
|
||||
PKG_VERSION:=10.0.0.6
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/obuspa.git
|
||||
PKG_SOURCE_VERSION:=0f6e5fd442e026430a43962ebcad7252d4dad2e9
|
||||
PKG_SOURCE_VERSION:=1412755da067d0f3e5f022bd1cc2076e057c39e5
|
||||
PKG_MAINTAINER:=Vivek Dutta <vivek.dutta@iopsys.eu>
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_HASH:=skip
|
||||
|
|
|
|||
26
obuspa/patches/2003-Optimize-set-commits.patch
Normal file
26
obuspa/patches/2003-Optimize-set-commits.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
diff --git a/src/core/handle_set.c b/src/core/handle_set.c
|
||||
index cbb0838..fb58bfb 100644
|
||||
--- a/src/core/handle_set.c
|
||||
+++ b/src/core/handle_set.c
|
||||
@@ -94,6 +94,7 @@ void DestroySetExprInfo(set_expr_info_t *set_expr_info, int num_set_expr);
|
||||
void PopulateSetResp_OperFailure(Usp__SetResp *set_resp, set_expr_info_t *si, group_set_vector_t *gsv);
|
||||
void PopulateOperFailure_UpdatedInstFailure(Usp__SetResp__UpdatedObjectResult__OperationStatus__OperationFailure *oper_failure, set_expr_info_t *si, int obj_index, group_set_vector_t *gsv);
|
||||
|
||||
+extern int vendor_hold_commits(bool hold_commit);
|
||||
/*********************************************************************//**
|
||||
**
|
||||
** MSG_HANDLER_HandleSet
|
||||
@@ -421,11 +422,13 @@ Usp__Msg *ProcessSet_AllowPartialTrue(char *msg_id, set_expr_info_t *set_expr_in
|
||||
resp = CreateSetResp(msg_id);
|
||||
set_resp = resp->body->response->set_resp;
|
||||
|
||||
+ vendor_hold_commits(true);
|
||||
// Iterate over all resolved expressions
|
||||
for (i=0; i < num_set_expr; i++)
|
||||
{
|
||||
ProcessSet_AllowPartialTrue_Expression(msg_id, set_resp, &set_expr_info[i], gsv);
|
||||
}
|
||||
+ vendor_hold_commits(false);
|
||||
|
||||
return resp;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue