mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Add a QueryItem method to the inventory subsystem. Currently implemented for
MySQL only, stubs for the others. This allows updating the cache with a single item from the database.
This commit is contained in:
@@ -296,6 +296,22 @@ namespace OpenSim.Region.Communications.OGS1
|
||||
return false;
|
||||
}
|
||||
|
||||
public InventoryItemBase QueryItem(InventoryItemBase item)
|
||||
{
|
||||
try
|
||||
{
|
||||
return SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, InventoryItemBase>(
|
||||
"POST", _inventoryServerUrl + "/QueryItem/", item);
|
||||
}
|
||||
catch (WebException e)
|
||||
{
|
||||
m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Query inventory item operation failed, {0} {1}",
|
||||
e.Source, e.Message);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool HasInventoryForUser(UUID userID)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user