diff options
author | Debarshi Ray <debarshir@gnome.org> | 2021-04-02 22:35:31 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2021-04-06 23:42:47 +0200 |
commit | d11c28c8ab6d82b3bca5fc2632630a5991044e2f (patch) | |
tree | 4e072b31f65ff60de80761103dc9480dbb06b66a /NEWS | |
parent | cc018312f9117e429e5c3fdad4e64ad9f7384b0b (diff) | |
download | tracker-wip/rishi/tracker_sparql_connection_update_array-test-zero-length.tar.gz |
libtracker-sparql, tests: Support empty array updateswip/rishi/tracker_sparql_connection_update_array-test-zero-length
This is for the convenience of users of the API where the length of
the array depends on runtime conditions and it's possible that it will
sometimes be empty.
The 'bus' and 'direct' implementations of the update_array_async
virtual method are mainly predicated on the length of the array. So, as
long as an empty array is accompanied by a zero length, it should work
as a NOP.
For the 'bus' implementation, another alternative was to handle it in
the endpoint (or the service-side) which would otherwise receive an
empty GUnixFDList. However, it's slightly nicer to handle it in the
client to avoid the IPC.
https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/392
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions